<?php 
	namespace Index\Model;
	use Think\Model;
/**
 * 问提表模型
 */
	class QuestionModel extends Model {

		
		public function hotview()
		{
			return $this->field('id,title,view_num')->order('view_num desc')->limit(10)->select();
		}

		public function hotanswer()
		{
			return $this->field('id,title,answer_num')->order('answer_num desc')->limit(10)->select();
		}
		public function hottime()
		{
			return $this->field('id,title,answer_num,view_num,create_time')->order('create_time desc ')->limit(5)->select();
		}


	};
	

 ?>